use axum::{extract::State, Json};
use std::sync::Arc;
use sea_orm::query::*;

use com::{code, sse::state::AppState};

pub async fn test(State(state): State<Arc<AppState>>) -> Result<Json<JsonValue>, Json<JsonValue>>{
    state.tx.send_str("msg").await;
    code::ok()
}